package com.iflytek.springboot_medicine.service.impl;

import com.iflytek.springboot_medicine.entity.Apply;
import com.iflytek.springboot_medicine.service.ApplyRepository;
import org.springframework.stereotype.Service;


@Service
public class ApplyServiceImpl {
    private final ApplyRepository applyRepository;

    public ApplyServiceImpl(ApplyRepository applyRepository) {
        this.applyRepository = applyRepository;
    }


    public Apply addApply(Apply apply){
        System.out.println(apply);
        return applyRepository.save(apply);
    }
}
